// @ts-ignore
/* eslint-disable */
import request from '@/request'

/** addProductSKU POST /api/productSKU/add */
export async function addProductSkuUsingPost(
  body: API.ProductSKUAddRequest,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponseLong_>('/api/productSKU/add', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  })
}

/** auditProductSKU POST /api/productSKU/audit */
export async function auditProductSkuUsingPost(
  body: API.ProductSKUAuditRequest,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponseBoolean_>('/api/productSKU/audit', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  })
}

/** deleteProductSKU POST /api/productSKU/delete */
export async function deleteProductSkuUsingPost(
  body: API.DeleteRequest,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponseBoolean_>('/api/productSKU/delete', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  })
}

/** getProductSKUVOById GET /api/productSKU/get/vo */
export async function getProductSkuvoByIdUsingGet(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.getProductSKUVOByIdUsingGETParams,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponseProductSKUVO_>('/api/productSKU/get/vo', {
    method: 'GET',
    params: {
      ...params,
    },
    ...(options || {}),
  })
}

/** listProductSKUByPage POST /api/productSKU/list/page */
export async function listProductSkuByPageUsingPost(
  body: API.ProductSKUQueryRequest,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponsePageProductSKU_>('/api/productSKU/list/page', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  })
}

/** listProductSKUVOByPage POST /api/productSKU/list/page/vo */
export async function listProductSkuvoByPageUsingPost(
  body: API.ProductSKUQueryRequest,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponsePageProductSKUVO_>('/api/productSKU/list/page/vo', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  })
}

/** updateProductSKU POST /api/productSKU/update */
export async function updateProductSkuUsingPost(
  body: API.ProductSKUUpdateRequest,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponseBoolean_>('/api/productSKU/update', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  })
}
